package com.svms.service.bo;

import java.util.List;

import com.svms.service.dml.iface.SpareDetailsDMLIF;
import com.svms.service.iface.SpareDetailsIF;
import com.svms.service.vo.SpareCodesVO;

public class SpareDetailsBO implements SpareDetailsIF {

	SpareDetailsDMLIF spareDetailsDML;

	public SpareDetailsDMLIF getSpareDetailsDML() {
		return spareDetailsDML;
	}

	public void setSpareDetailsDML(SpareDetailsDMLIF spareDetailsDML) {
		this.spareDetailsDML = spareDetailsDML;
	}

	@Override
	public SpareCodesVO insertNewSpareDetail(SpareCodesVO spareStatic) {
		SpareCodesVO spareCodesVO = spareDetailsDML
				.insertNewSpareDetail(spareStatic);
		return spareCodesVO;
	}

	@Override
	public SpareCodesVO deleteSpareDetail(SpareCodesVO spareStatic) {
		SpareCodesVO spareCodesVO = spareDetailsDML
				.deleteSpareDetail(spareStatic);
		return spareCodesVO;
	}

	@Override
	public SpareCodesVO getSpareDetails(SpareCodesVO spareStatic) {
		SpareCodesVO spareCodesVO = spareDetailsDML
				.getSpareDetails(spareStatic);
		return spareCodesVO;
	}

	@Override
	public List<SpareCodesVO> getAllSparesDetailsList() {
		List<SpareCodesVO> spareCodesVOs = spareDetailsDML
				.getAllSparesDetailsList();
		return spareCodesVOs;
	}

	@Override
	public SpareCodesVO editSpareDetail(SpareCodesVO spareCodesVO) {
		SpareCodesVO spareCodes =spareDetailsDML.editSpareDetail(spareCodesVO) ;
		return spareCodes;
	}

}
